#!/bin/sh

set -e

echo "Generating blocklist for all network devices"

find /lib/modules/*/kernel/drivers/net \
     -name "*.ko" -printf "blacklist %f\n" | \
  sed 's/\.ko$//' | \
  sort -u > /etc/modprobe.d/all-net-blacklist.conf
